package com.cz.auth.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * <p>用户角色表Mapper</p>
 * <p>
 * <pre>
 * @author gitamacai
 * @date 2019/11/14 10:11
 * </pre>
 */
public interface UserRoleMapper {

    /**
     * 插入
     *
     * @param userId 用户id
     * @param roleId 角色id
     */
    @Insert("insert into sys_user_role(user_id, role_id) values(#{userId}, #{roleId})")
    void insert(@Param("userId") int userId, @Param("roleId") int roleId);
}